package com.example.demo.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 叮当猫的百宝箱
 * @since 1.0
 */
@Data
public class Banner implements Serializable {

    private static final long serialVersionUID = 5808754063843631590L;

    /**
     * 轮播图ID(主键)
     */
    private Long id;

    /**
     * 关联的资源ID
     */
    private Long resourceId;

    /**
     * 轮播图标题
     */
    private String title;

    /**
     * 资源本地路径(冗余)
     */
    private String path;

    /**
     * 跳转链接
     */
    private String link;

    /**
     * 是否长期有效
     */
    private Integer permanent;

    /**
     * 生效日期
     */
    private LocalDateTime validFrom;

    /**
     * 失效日期
     */
    private LocalDateTime validTo;


}
